//
//  ShuomintiaoTwo.m
//  LOU
//
//  Created by 要帅气的生活 on 15/11/10.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "ShuomintiaoTwo.h"
#import "BaseView.h"
@implementation ShuomintiaoTwo

-(instancetype) initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UILabel *jiage = [[UILabel alloc] initWithFrame:CGRectMake(10, 15, 65, 20)];
        [self addSubview:jiage];
        jiage.text = @"房屋价格:";
        jiage.font = [UIFont systemFontOfSize:15];
        self.label11 = [[UILabel alloc] initWithFrame:CGRectMake(75, 15, 180, 20)];
        [self addSubview:self.label11];
        self.label11.font = [UIFont systemFontOfSize:15];
        //self.label11.backgroundColor = [UIColor yellowColor];
        self.label11.text = @"￥2300 ~ 3000万";
        
        UILabel *leixing = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/4*3-20, 15, 60, 20)];
        [self addSubview:leixing];
        leixing.text = @"类    型:";
        leixing.font = [UIFont systemFontOfSize:15];
        self.label12 = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/4*3+40, 15, 40, 20)];
        [self addSubview:self.label12];
        self.label12.font = [UIFont systemFontOfSize:15];
        //self.label12.backgroundColor = [UIColor yellowColor];
        self.label12.text = @"期房";
        
        UILabel *mianji = [[UILabel alloc] initWithFrame:CGRectMake(10, 50, 65, 20)];
        [self addSubview:mianji];
        mianji.text = @"实用面积:";
        //mianji.backgroundColor = [UIColor blueColor];
        mianji.font = [UIFont systemFontOfSize:15];
        self.label21 = [[UILabel alloc] initWithFrame:CGRectMake(75, 50, 180, 20)];
        [self addSubview:self.label21];
        self.label21.font = [UIFont systemFontOfSize:15];
        //self.label21.backgroundColor = [UIColor yellowColor];
        self.label21.text = @"235.24 ~ 293.28平方米";
        
        UILabel *louceng = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/4*3-20, 50, 60, 20)];
        [self addSubview:louceng];
        louceng.text = @"总楼层:";
        louceng.font = [UIFont systemFontOfSize:15];
        self.label22 = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/4*3+40, 50, 40, 20)];
        [self addSubview:self.label22];
        self.label22.font = [UIFont systemFontOfSize:15];
        //self.label22.backgroundColor = [UIColor yellowColor];
        self.label22.text = @"28层";
        
        UILabel *fangshu = [[UILabel alloc] initWithFrame:CGRectMake(10, 85, 50, 20)];
        [self addSubview:fangshu];
        fangshu.text = @"总房数:";
        fangshu.font = [UIFont systemFontOfSize:15];
        self.label31 = [[UILabel alloc] initWithFrame:CGRectMake(60, 85, 65, 20)];
        [self addSubview:self.label31];
        self.label31.font = [UIFont systemFontOfSize:15];
        //self.label31.backgroundColor = [UIColor yellowColor];
        self.label31.text = @"106套";
        
        self.view = [[BaseView alloc] initWithFrame:CGRectMake(375/3+20, 85, 375/3*2-10, 20)];
        [self addSubview:self.view];
        UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
        img.image = [UIImage imageNamed:@"dianhua.png"];
        [self.view addSubview:img];
        UILabel *name = [[UILabel alloc] initWithFrame:CGRectMake(20, 0, 50, 20)];
        name.text = @"负责人:";
        name.font = [UIFont systemFontOfSize:15];
        name.textColor = [UIColor blueColor];
        [self.view addSubview:name];
        self.name = [[UILabel alloc] initWithFrame:CGRectMake(70, 0, 50, 20)];
        self.name.textColor = [UIColor blueColor];
        self.name.font = [UIFont systemFontOfSize:15];
        [self.view addSubview:self.name];
        self.label32 = [[UILabel alloc] initWithFrame:CGRectMake(120, 0, 375/3*2-130, 20)];
        [self.view addSubview:self.label32];
        self.label32.font = [UIFont systemFontOfSize:15];
        self.label32.textColor = [UIColor blueColor];
        
    }
    return self;
}

@end
